$(function(){
	$('iframe[name="UploadImage"]').before('<iframe name="UploadFrame" style="display:none;"></iframe>');
	window.frames['UploadImage'].document.body.innerHTML = '<div style="height:24px;overflow:hidden;left:0;top:0;position:absolute;"><form name="UploadForm" action="'+RaysnWeb.settings.basePath+RaysnWeb.settings.uploadPath+'" method="post" target="UploadFrame" enctype="multipart/form-data"><input type="file" name="UploadImage" size="18" /><input type="submit" name="confirm" value="上传图片" /></form></div>';
});

RaysnWeb.createImageWrapper = function(src) {
	$('#ImageWrapper').replaceWith('<img src="'+src+'" />');
}
